﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ERPStudio;
using System.Data.SqlClient;

namespace ERPForms
{
    public partial class ValuteFrm : FrmRezumat
    {
        public ValuteFrm(ModuleClass mc):base(mc)
        {
            InitializeComponent();
            workConnString = mc.workConnectionString;
            eSRPDataSetValute.Valuta.UtilizatColumn.DefaultValue = true;
            eSRPDataSetValute.Valuta.MonedaImplicitaColumn.DefaultValue = false;
        }

        private void ValuteFrm_Load(object sender, EventArgs e)
        {
            SqlConnection con = DeschideConexiune(workConnString);
            this.valutaTableAdapter.Connection = con;
            this.valutaTableAdapter.Fill(this.eSRPDataSetValute.Valuta);
            InchideConexiune(con);

            AddBindingSource(valutaBindingSource);
            AddTableAdaptor(valutaTableAdapter.Adapter);

        }
    }
}
